<?php

namespace App\Transformers\Frontend;

use App\Models\Qiniu;
use League\Fractal\TransformerAbstract;

class ConfigTransformer extends TransformerAbstract
{

    protected $hidden = ['access_key', 'secret_key', 'bucket', 'deleted_at'];

    public function transform(Qiniu $model)
    {
        $model->makeHidden($this->hidden);
        return $model->attributesToArray();
    }

}